numbers = [1,3,23,89]





for num in numbers:
    sql = f'''
    #{num}号用户,回复通知
update user_reply_notifications
set create_time=
        (select create_time
         from comment
         where comment_id = reply_me_comment_id)
where reply_me_comment_id in
      (select c1.comment_id
       from comment c1
       WHERE c1.reply_comment_id IN (SELECT comment_id
                                     FROM comment
                                     WHERE user_id = {num}))
  and receiver_user_id = {num};
    '''
    print(sql)

